//
//  VisitingFamilyCell.h
//  CarLife
//
//  Created by yu on 2018/1/29.
//  Copyright © 2018年 jpas. All rights reserved.
//

#import <UIKit/UIKit.h>

@class QuestionModel,VisitingImageModel,
       WorkorderModel,VisitingInfoModel;

typedef void(^PhotoActionBlock)(NSInteger index,UIImagePickerController *imagePicker);
typedef void(^TapImageBlock)(NSInteger index);
typedef void(^PickerBlock)(void);

@interface VisitingFamilyCell : UITableViewCell

// section0
@property (weak, nonatomic) IBOutlet UILabel *nameLabel;//名字
@property (weak, nonatomic) IBOutlet UILabel *owenerIdLabel;//身份证号
@property (weak, nonatomic) IBOutlet UILabel *mobileLabel;//电话号
@property (weak, nonatomic) IBOutlet UILabel *contractLabel;//合同号
@property (weak, nonatomic) IBOutlet UILabel *homeAddLabel;//家庭住址
@property (weak, nonatomic) IBOutlet UILabel *companyLabel;//公司名称
@property (weak, nonatomic) IBOutlet UILabel *companyAddLabel;//公司地址
//section1
@property (weak, nonatomic) IBOutlet UILabel *visitTimeLabel;//上门日期
@property (weak, nonatomic) IBOutlet UITextField *visitorNameTF;//家访人员姓名
@property (weak, nonatomic) IBOutlet UITextField *visitorMobileTF;//联系方式
@property (nonatomic, strong) VisitingInfoModel *viModel;

//
@property (weak, nonatomic) IBOutlet UILabel *questionLabel;
@property (weak, nonatomic) IBOutlet UIButton *answerYBtn;
@property (weak, nonatomic) IBOutlet UILabel *answerYDesLabel;
@property (weak, nonatomic) IBOutlet UITextView *answerYTextView;
@property (weak, nonatomic) IBOutlet UIButton *answerNBtn;
@property (weak, nonatomic) IBOutlet UILabel *answerNDesLabel;
@property (weak, nonatomic) IBOutlet UITextView *answerNTextView;

@property (nonatomic, strong) QuestionModel *questionModel;
@property (nonatomic, strong) WorkorderModel *woModel;

@property (nonatomic, strong) UITableView *tableView;

@property (weak, nonatomic) IBOutlet UILabel *photoDesLabel;
@property (weak, nonatomic) IBOutlet UIButton *photoBtn;
@property (weak, nonatomic) IBOutlet UIImageView *imgView;

@property (nonatomic, strong) VisitingImageModel *imageModel;
@property (nonatomic, copy) PhotoActionBlock photoActionBlock;
@property (nonatomic, copy) PickerBlock pickerBlock;
@property (nonatomic, copy) TapImageBlock tapImageBlock;

+ (instancetype)initTableViewCellWith:(UITableView *)tableView indexPath:(NSIndexPath *)indexPath;

@end
